// 封装购物车
import request from "@/utils/request"
// 添加购物车
export const _addNewCart = ({ skuId, count }) => {
  return request({
    method: 'POST',
    url: '/member/cart',
    data: {
      skuId,
      count
    }
  })
}
// 获取新的购物车商品
export const _getNewCartList = () => {
  return request({
    url: '/member/cart'
  })
}
// 删除购物车方法
export const _delNewCart = (ids) => {
  return request({
    method: 'DELETE',
    url: '/member/cart',
    data: {
      ids
    }
  })
}
// 合并购物车
export const _mergeCart = (data) => {
  return request({
    method: 'POST',
    url: '/member/cart/merge',
    data
  })
}